<%@ page import="org.springframework.core.io.ClassPathResource" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试用户页面</title>
</head>
<body>
    views/test/index.jsp zhu hui SpringMVC
    <!--操作域对象-->
    <p>${user}</p>
    <p>${user.userName}</p>

    <!--设置属性-->
    <input type="text" value=${user.userName}>
    <input type="text" value=${user.userName} title=${user.userName}>

    <!--表单数据绑定-->
    <form action="" object="${user}">
        <input type="text" value="${user.userName}">
        <input type="text" value="${user.userPwd}">
    </form>

    <!--流程控制-->
    <c:if test="${user.userName ne user.userPwd}">
        <p>yes</p>
    </c:if>
    <c:choose>
        <c:when test="${user.userName eq 'rose'}">name is rose</c:when>
        <c:when test="${user.userName eq 'jack'}">name is jack</c:when>
    </c:choose><% String classpath; %>
    <!--外部引入-->
    <link rel="stylesheet" type="text/css" src="/static/css/index.css">
    <script src="/static/js/index.js"></script>

    <a href="/">home</a>
</body>

</html>